package com.yss.reportworld.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.EasyExcel;
import com.yss.common.core.utils.easyexecl.IntegerConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yss.common.core.web.domain.BaseEntity;

/**
 * 校验规则对象 report_world_table_standard_check
 *
 * @author yss
 * @date 2023-03-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("report_world_table_standard_check")
public class TableStandardCheck extends BaseEntity {

    /**  */
    @ExcelIgnore
    @TableId("ID")
    private String id;

    /**
     * 表名前缀
     */
    @ExcelProperty(value = "表名前缀")
    @TableField("TABLE_NAME_PREFIX")
    private String tableNamePrefix;

    /**
     * 表名后缀
     */
    @ExcelProperty(value = "表名后缀")
    @TableField("TABLE_NAME_SUFFIX")
    private String tableNameSuffix;

    /**
     * 表名包含
     */
    @ExcelProperty(value = "表名包含")
    @TableField("TABLE_NAME_CONTAIN")
    private String tableNameContain;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = IntegerConverter.class)
    @EasyExcel(readConverterExp = "1=正常,2=停用")
    @TableField("STATUS")
    private Integer status;

    /**
     * 检查的CODE
     */
    @ExcelProperty(value = "检查的CODE")
    @TableField("CHECK_CODE")
    private String checkCode;

    /**
     * 检查的VALUE
     */
    @ExcelProperty(value = "检查的VALUE")
    @TableField("CHECK_VALUE")
    private String checkValue;

    // 导出的时候选择 数据的主键
    @ExcelIgnore
    @TableField(exist = false)
    private String ids;

}
